package vista;

import java.awt.BorderLayout;
import java.awt.Rectangle;
import java.awt.event.ActionListener;

import javax.swing.JPanel;

import javax.swing.JButton;
import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;




/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VistaBMinas extends javax.swing.JFrame {
	private JPanel panMinas;

	private JButton botones[][];
	private JButton btnStart;
	//private ModeloMina modeloMina;
	

	/**
	* Auto-generated main method to display this JFrame
	*/
		
	public VistaBMinas(JButton botones[][]) {
		super();
		
		
		//botones = new JButton [modeloMina.getAncho()][modeloMina.getAlto()];
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			{
				btnStart = new JButton();
				getContentPane().add(btnStart, BorderLayout.NORTH);
				btnStart.setText("START");
				btnStart.setPreferredSize(new java.awt.Dimension(474, 40));
				btnStart.setBounds(new Rectangle(0, 0, 125, 40));
			}
			{
				panMinas = new JPanel();
				getContentPane().add(panMinas, BorderLayout.CENTER);
				panMinas.setLayout(null);
			}
			/*{
				panMinas = new JPanel();
				getContentPane().add(panMinas, BorderLayout.CENTER);
				panMinas.setLayout(null);
				panMinas.setPreferredSize(new java.awt.Dimension(469, 360));
				{
					btnStart = new JButton();
					panMinas.add(btnStart);
					btnStart.setText("START");
					btnStart.setBounds(17, 12, 112, 34);
				}
			}*/
			pack();
			this.setSize(484, 451);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
	
	
	
	public void setBotones(JButton[][] botones) {
		this.botones = botones;
	}

	public void addListener(ActionListener actionListener) {
		this.btnStart.addActionListener(actionListener);
	}
	
	public JButton[][] getBotones() {
		return this.botones;
	}
	
	public JPanel getPanel() {
		return this.panMinas;
	}

	public JButton getBtnStart() {
		return btnStart;
	}

	public void setBtnStart(JButton btnStart) {
	}
	
}
